Java Server Page

JSP Projects

JSP Project

adplus-dvertising
Define the JavaServer Pages (JSP) architecture
Previous Home Next

JSP is essential a HTML page with special JSP tag embedded( contain Java code), the JSP file should have .jsp extension rather than .java, .html, and .htm, because JSP engine only parses .jsp file and convert it into JavaServlet source file, than source file is compile into class file( help of Java virtual machine), this is slow process, than the file is compile into class then it completely load into dynamic memory.

Steps to generate the JSP Request:-
  • The user made a JSP file and save it with .jsp extension on the web-site using JSP. The web browser make a request via a internet
  • The request ( in form of JSP file) is send to the Apache Web-server
  • The Web-server recognize that file via .jsp extension and separate with other application, send it to the JSP Servlet Engine.

Then following step is processed into JSP engine.

  • After Instantiates servlet, called the init() method and service() method.
  • After communicate with database, the special servlet file is generated from the JSP file. All the HTML file is required to convert all println syntax.
  • HTML file from the servlet output( from web-server) is send via a internet.
  • Internet display that HTML file to the client web browser. This file contain static as well as dynamic content.
Previous Home Next